﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControls_TH_RightColumn : System.Web.UI.UserControl
{
    private DataSet objDataSet;
    protected void Page_Load(object sender, EventArgs e)
    {
        // Load the grid only the first time the page is loaded
        if (!Page.IsPostBack)
        {
            // Load the categories grid
            BindGrid();
        }
    }
    // Populate the GridView with data
    private void BindGrid()
    {
        QuangCaoBUS objQC = new QuangCaoBUS(TGDDConfiguration.DbConnectionString);
        try
        {
            objDataSet = objQC.SelectQuangCaoByViTri(3);
            repQuangCao3.DataSource = objDataSet.Tables[0];
            repQuangCao3.DataBind();
        }
        catch (System.Exception e)
        {
            throw new Exception(e.Message, e.InnerException);
        }
    }
}
